package cn.lxm.samples.auth_server.domain.security;

import java.util.List;

/**
 * @author LXM
 * @Title: oauth2
 * @Description:
 * @date 2018/8/23下午6:30
 */
public class TokenDetail {

    /**
     * access_token : eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiQ291cG9uU3lzdGVtIl0sInVzZXJfbmFtZSI6Imxpc2kiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwicm9sZXMiOlt7ImF1dGhvcml0eSI6Im1lbWJlckV4cG9ydCJ9XSwiZXhwIjoxNTM1MDE5NTgyLCJ1c2VyTmFtZSI6Imxpc2kiLCJhdXRob3JpdGllcyI6WyJtZW1iZXJFeHBvcnQiXSwianRpIjoiYmYwMDRlY2YtYmE4MS00ZmY1LWI4YWEtNjFlYjFlZGY0MjgxIiwiY2xpZW50X2lkIjoiVUkyIn0.RMsfHtEiHl6uqtHEhUfVNdV3xVP5-5OL7zMZGd4JQqNnXo5l4WQjrE9-EMezvRRMNEtExlirwQGAY18-B9LJWe4PRnev1vZt8vQ3KZSg4bNT0ZYkIULTfKAk8emflG_QgEyU6Rd8nWTLl9zkJwCZkx0eBlaYjpIXbPtSRE3JBSnfD5yowwQBE1UKL5-ONz8jTI92L6LNsYbD0o58YXaqSnGo1vYJKZeHLJDgY53LTvtbi90esDu6xrDbY9I97yWzIzR8TbOiY0UWUD4OgomzuHHfEGWrZdim95sTf6manNwGsYTRAlOC0id_lebVqySDhXOnTaOkALs25Q41HuMLJQ
     * token_type : bearer
     * refresh_token : eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiQ291cG9uU3lzdGVtIl0sInVzZXJfbmFtZSI6Imxpc2kiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwicm9sZXMiOlt7ImF1dGhvcml0eSI6Im1lbWJlckV4cG9ydCJ9XSwiYXRpIjoiYmYwMDRlY2YtYmE4MS00ZmY1LWI4YWEtNjFlYjFlZGY0MjgxIiwiZXhwIjoxNTM1MDIwOTIwLCJ1c2VyTmFtZSI6Imxpc2kiLCJhdXRob3JpdGllcyI6WyJtZW1iZXJFeHBvcnQiXSwianRpIjoiMTk0YjVjZmMtNzZhOC00MzM0LWEyZjEtNTllYzVhZDFlMzdjIiwiY2xpZW50X2lkIjoiVUkyIn0.hoJFA29q9DWePeaHjVNr8uj3BBIV86r1YlxYbzhxHPKMZp1dD0Ajl9EhA9pI_wTf5OlvB5C6pepLfPRYclG_LUaQLMlAlQSOa3uTjWFWeoGJlYOufEidVVsmO4xOgRL7YWdEyYohX-PaIPp7qqwHlb2kgUcrzFCT4kl4asy7tpgEtCzGYgKpqyKoqbbBd1G_g1bNV-1wvbXY8E9TUjWobyxOaSL_XOqlWTOrMFmLdJUcbDBBJ81ZnRT2swbAO25xef0sSizf1iXvDNvix937Z-xozbYkizErCuwoKOSy_wP_fSQVyh_0nn-ygOQtL0fPoC7yzsDy9XKdJCGR9CQxDg
     * expires_in : 179
     * scope : read write
     * roles : [{"authority":"memberExport"}]
     * userName : lisi
     * jti : bf004ecf-ba81-4ff5-b8aa-61eb1edf4281
     */

    private String access_token;
    private String token_type;
    private String refresh_token;
    private int expires_in;
    private String scope;
    private String userName;
    private String jti;
    private List<RolesBean> roles;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getJti() {
        return jti;
    }

    public void setJti(String jti) {
        this.jti = jti;
    }

    public List<RolesBean> getRoles() {
        return roles;
    }

    public void setRoles(List<RolesBean> roles) {
        this.roles = roles;
    }

    public static class RolesBean {
        /**
         * authority : memberExport
         */

        private String authority;

        public String getAuthority() {
            return authority;
        }

        public void setAuthority(String authority) {
            this.authority = authority;
        }
    }
}
